Crate roopes_derive

source ·
Expand description

This crate implements macros supporting some patterns:

Derive Macros

  • Creates a new type on the specified struct, which allows fields to be set one at a time. The new builder type’s name is the specified type, appended with “Builder”.
  • Creates a Publisher and Subscriber for the given message type.
  • Creates a new trait for user code to implement on the specified enum. This trait requires implementors to implement handlers for all the specified variants in the given enum.